"use strict";
module.exports = {
  devServer: {
    host: "0.0.0.0",
    port: 9688,
    open: true,
    proxy: {
      //配置跨域
      "/api": {
        target: "http://pengfh.com:8080/", //真实的后台接口
        // target: "http://192.168.0.81:8080",
        ws: true,
        changOrigin: true, //允许跨域
        pathRewrite: {
          "^/api": "", //请求时用api
        },
      },
    },
  },
};
